
#include "Color4.h"


namespace soft_renderer
{
	Color4::Color4(double r, double g, double b, double a) : _r(r), _g(g), _b(b), _a(a)
	{
	}

	double Color4::r()
	{
		return _r;
	}

	double Color4::g()
	{
		return _g;
	}

	double Color4::b()
	{
		return _b;
	}

	double Color4::a()
	{
		return _a;
	}

	void Color4::set(double r, double g, double b, double a)
	{
		_r = r;
		_g = g;
		_b = b;
		_a = a;
	}

	void Color4::copy(const Color4& c)
	{
		_r = c._r;
		_g = c._g;
		_b = c._b;
		_a = c._a;
	}
}

